<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Memcache
 *
 * @author ananda
 */
class Data_ArrayAccess extends Data_Record
{
    public function init()
    {
        ;
    }

    public function getData()
    {
        return $this->handler;
    }

    /**
     * 数组存取接口
     * @param string $offset
     * @return boolean
     */
    public function offsetExists($offset)
    {
        return isset($this->handler[$offset]);
    }

    /**
     * 数组存取接口
     * @param string $offset
     * @return mixed
     */
    public function offsetGet($offset)
    {
        return $this->handler[$offset];
    }

    /**
     * 数组存取接口
     * @param string $offset
     * @param mixed $value
     * @return void
     */
    public function offsetSet($offset, $value)
    {
        $this->handler[$offset] = $value;
    }

    /**
     * 数组存取接口
     * @param string $offset
     * @return void
     */
    public function offsetUnset($offset)
    {
        unset($this->handler[$offset]);
    }
}
?>